package com.harmonyos.samples.constants;

import com.harmonyos.samples.utils.InsertUtils;

public class Constants {

    public static final boolean IS_DEBUG = true;

    public static final int HTTP_CONNECT_TIMEOUT = 5000;

    public static final int WATER_FLOW_ITEM_WIDTH = 240;

    public static final int WATER_FLOW_LIBRARY_ITEM_WIDTH = 800;
    public static final int WATER_FLOW_ITEM_TEXT_HEIGHT = 30;
    public static final int WATER_FLOW_SPACING = 20;
    public static final int WATER_FLOW_ITEM_PADDING_TOP = 5;
    public static final int WATER_FLOW_ITEM_PADDING_BOTTOM = 5;
    public static final int WATER_FLOW_ITEM_PADDING_LEFT = 10;
    public static final int WATER_FLOW_ITEM_PADDING_RIGHT = 10;
    public static final int WATER_FLOW_ITEM_IMAGE_MIN_HEIGHT = 150;

    public static final int ONE_DAY = 24 * 60 * 60 * 1000;

    public static final String TEST_SETTING = InsertUtils.getCacheDirectory() + "/test_setting";

    public static final String CASE_SUB_DIR_NAME="samplesfeature";
    public static final String PLUGIN_PKG_NAME = "com.harmonyos.samples";
    public static String PLUGIN_LOADING_PROGRESS = "loading...%d%%";
    // 插件名称
    public static final String PLUGIN_TITLE = "HarmonyOS Sample组件市场";
    public static final String PLUGIN_GROUP_ID = "Import HarmonyOS Sample";
    public static final String PLUGIN_SUB_TITLE = "请选择分类";
    public static final String PLUGIN_SEARCH = "请输入组件名";
    public static final String PLUGIN_CATEGORY_SAMPLE = "sample";
    public static final String PLUGIN_CATEGORY_LIBRARY = "library";
    public static final String PLUGIN_NOTIFICATION_TIP = "Tips";
    public static final String PLUGIN_NOTIFICATION_ERROR = "Error";
    public static final String PLUGIN_NOTIFICATION_OPEN = "Open file";

    public static final String QUESTIONNAIRE_TEXT = "在HarmonyOS Sample组件市场的使用过程中，如果遇到问题或者有其他改进意见，可通过问卷调查进行反馈~";
    public static final String QUESTIONNAIRE_URL = "https://wj.qq.com/s2/15658343/4734/";

    public static String HOME_URL = String.format(Constants.BASE_URL, Constants.GITEE_OWNER, Constants.GITEE_REPO);

    public static final String BASE_URL = "https://gitee.com/api/v5/repos/%s/%s/contents";
    public static final String TEST_ACCESS_TOKEN = "?access_token=951814066e8b44cb9058a9e618347318&ref=";
    // 配置文件在线路径
    public static final String CONFIG_PATH = "https://gitee.com/rekirt/SamplePlugin/raw/master/config.json";
    public static final String VERSION_URL = "https://gitee.com/rekirt/SamplePlugin/raw/master/version.json";
    public static final String GITEE_OWNER = "harmonyos_samples";
    public static String GITEE_REPO = "";
    public static final String GITEE_REF = "br_release_hmos";
    // 测试链接
//    public static final String STATISTICS_COUNT = "https://gitee.com/sephyrothcloud/cases_1022/blob/PluginTracingPoint/plugin/statistics/tracecount";
//    public static String STATISTICS_PRE = "https://gitee.com/sephyrothcloud/cases_1022/tree/PluginTracingPoint/%sREADME.md";
    public static final String STATISTICS_COUNT = "https://gitee.com/rekirt/SamplePlugin";
    public static String STATISTICS_PRE = "https://gitee.com/rekirt/SamplePlugin/README.md";
}
